package com.iqiyi.game.ams.domain.acitivty.entity;

import com.iqiyi.game.ams.domain.acitivty.entity.module.User;
import com.iqiyi.game.ams.domain.core.entity.ValueObject;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @author hanbaoyu
 */

@Data
@Component
public class Module implements ValueObject {
    private String label;
    private String config;
    private Boolean isDefault;

    public Object execute() {
        switch (this.label) {
            case "User":
                return User.get(1);
            default: return null;
        }
    }
}
